PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Tell (Simple Statement)

A simple Tell statement specifies the object to which to send a command.

SYNTAX
tell referenceToObject to statement

where

referenceToObject is a reference to an application object, system object, or script object.

statement is any AppleScript statement.

EXAMPLE
tell front window of application "Finder" to close
NOTES

If referenceToObject specifies an application on a remote computer, additional conditions must be met. These conditions are described in References to Applications.

If referenceToObject specifies an application on the same computer that is not running, AppleScript launches the application.


© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)